//
//  LFTMCCountDownView.h
//  Pods
//
//  Created by Thomas Quan on 2017/5/14.
//
//

#import <UIKit/UIKit.h>

@protocol LFTMCCountDownViewDelegate <NSObject>

@optional
- (void)timerDidUpdateCounterValue:(NSInteger)newValue;
- (void)timerDidstart;
- (void)timerDidPause;
- (void)timerDidResume;

@end

@interface LFTMCCountDownView : UIView

@property (nonatomic, assign) CGFloat     lineWidth;
@property (nonatomic, strong) UIColor     *lineColor;
@property (nonatomic, strong) UIColor     *trailLineColor;
@property (nonatomic, strong) UIColor     *deadTimeColor;
@property (nonatomic, strong) UIColor     *bgdColor;

@property (nonatomic, assign) NSInteger  deadTime;
@property (nonatomic, assign) BOOL      isLabelHidden;
@property (nonatomic, strong) UIFont    *labelFont;
@property (nonatomic, strong) UIColor   *labelTextColor;
@property (nonatomic, copy)   NSString  *finishingText;

@property (nonatomic, assign, readonly) BOOL      isPlaying;
@property (nonatomic, assign, readonly) BOOL      isEnded;

@property (nonatomic, weak)   id<LFTMCCountDownViewDelegate> delegate;

- (void)correct:(NSTimeInterval)correctTime;

- (void)resetSelf;

- (void)start:(NSInteger)beginingValue interval:(NSTimeInterval)interval;

- (void)start:(NSInteger)beginingValue;

- (void)pause;

- (void)resume;

@end
